package com.kungfuhacking.wristbandpro.location.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Aaron on 17/5/5.
 */

public class AreaListEntity implements Parcelable {

    private String id;
    private String areaName;
    private int childId;
    private String lat;
    private String lng;
    private double latitude;
    private double longitude;
    private double radius;
    private int isDel;
    private int inside;

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAreaName() {
        return areaName;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public int getChildId() {
        return childId;
    }

    public void setChildId(int childId) {
        this.childId = childId;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }


    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public int getInside() {
        return inside;
    }

    public void setInside(int inside) {
        this.inside = inside;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.areaName);
        dest.writeInt(this.childId);
        dest.writeString(this.lat);
        dest.writeString(this.lng);
        dest.writeDouble(this.latitude);
        dest.writeDouble(this.longitude);
        dest.writeDouble(this.radius);
        dest.writeInt(this.isDel);
        dest.writeInt(this.inside);
    }

    public AreaListEntity() {
    }

    protected AreaListEntity(Parcel in) {
        this.id = in.readString();
        this.areaName = in.readString();
        this.childId = in.readInt();
        this.lat = in.readString();
        this.lng = in.readString();
        this.latitude = in.readDouble();
        this.longitude = in.readDouble();
        this.radius = in.readDouble();
        this.isDel = in.readInt();
        this.inside = in.readInt();
    }

    public static final Parcelable.Creator<AreaListEntity> CREATOR = new Parcelable.Creator<AreaListEntity>() {
        @Override
        public AreaListEntity createFromParcel(Parcel source) {
            return new AreaListEntity(source);
        }

        @Override
        public AreaListEntity[] newArray(int size) {
            return new AreaListEntity[size];
        }
    };
}
